package com.think.oauth.user.service;

import org.springframework.security.oauth2.provider.ClientDetails;
import org.springframework.security.oauth2.provider.ClientDetailsService;
import org.springframework.security.oauth2.provider.ClientRegistrationException;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.think.oauth.user.dao.user.OauthClientDetailsDao;
import com.think.oauth.user.model.OauthClientDetails;

@Service
public class CustomClientDetailService extends ServiceImpl<OauthClientDetailsDao, OauthClientDetails> {

	
	public OauthClientDetails loadClientByClientId(String clientId) throws ClientRegistrationException {
		// TODO Auto-generated method stub
		return this.getById(clientId);
	}

}
